import request from '@/utils/request'

// 查询投票结果列表
export function listScore(query) {
  return request({
    url: '/vote/score/list',
    method: 'get',
    params: query
  })
}

// 查询投票结果详细
export function getScore(scoreId) {
  return request({
    url: '/vote/score/' + scoreId,
    method: 'get'
  })
}

// 新增投票结果
export function addScore(data) {
  return request({
    url: '/vote/score',
    method: 'post',
    data: data
  })
}

// 修改投票结果
export function updateScore(data) {
  return request({
    url: '/vote/score',
    method: 'put',
    data: data
  })
}

// 删除投票结果
export function delScore(scoreId) {
  return request({
    url: '/vote/score/' + scoreId,
    method: 'delete'
  })
}

// 获取小区信息
export function getAreaInfo() {
  return request({
    url: '/house/area/list3',
    method: 'get'
  })
}
// 获取小区信息
export function getAreaInfo1(areaName) {
  return request({
    url: '/house/area/list4/'+areaName,
    method: 'get'
  })
}

// 获取物业
export function getPropertyId() {
  return request({
    url: '/other/property/list',
    method: 'get'
  })
}
